export function debounce(callbback, time = 400) {
	let timer;
	return function(...args) {
		clearTimeout(timer)

		timer = setTimeout(() => {
			callbback.apply(this, args)
		}, time)
	}
}